include $(LITEOSTOPDIR)/config.mk

MODULE_NAME := spinor_flash

ifeq ($(NAND_DRIVER_DIR),hisfc350)
SRCS_COMMON_DEL0 = src/common/hifmc_comomn.c
endif

SRCS_HOST = $(wildcard src/$(NOR_DRIVER_DIR)/*.c)

SRCS_COMMON_TMP0 = $(wildcard src/common/*.c)
SRCS_COMMON = $(subst $(SRCS_COMMON_DEL0),,$(SRCS_COMMON_TMP0))
LOCAL_SRCS := $(SRCS_COMMON) $(SRCS_HOST)

SPI_NOR_INCLUDE = -I $(LITEOSTOPDIR)/drivers/mtd/common/include/
SPI_NOR_INCLUDE += -I $(LITEOSTOPDIR)/drivers/mtd/spi_nor/src/common/
LOCAL_FLAGS := -Wno-unused-variable $(SPI_NOR_INCLUDE)

include $(MODULE)
